@extends('host.common.common')

@section('title')
    @parent
    登录
@stop

@section('body')

    <div class="top-all" style="width: 100%;height: 34px;border-bottom: 1px #ddd solid;background-color: #f9f9f9;">
        <div class="f12 c-999 lh35" style="margin-left:20%;">欢迎来到咖啡商谷</div>
    </div>
    <div class="login-top">
        <a href="{{route('host')}}">
            <img src="/assets/b2b/css/images/b2b-web-logo.png" class="b2b-web-logo">
        </a>
        <div class="fr " style="margin-right: 10%">
            <img src="/assets/b2b/css/images/d-code.jpg " class="mt15">
            <div class="c-coffee tc mt5">
                APP下载
            </div>
        </div>
    </div>
    <div class="clearfix" style="background-color: #F9F9F9">
        <div class="login-main clearfix">
            <div class="main-left">
                <img src="/assets/b2b/css/images/login_banner.png" class="login-left-img">
            </div>
            <div class="main-right">
                <div class="right-t clearfix">
                    <p class="lh55">欢迎来到咖啡商谷！</p>

                    <div class="right-btn clearfix">
                        <a href="{{route('register.provider')}}" class="btn-w140x42 btn btn-red lh30">供应商注册</a>
                        <a href="{{route('register.purchaser')}}" class="btn-w140x42 btn btn-red ml20 lh30">采购商注册</a>
                    </div>
                </div>
                <div class="right-b">
                    <form action="{{ route('custom.login') }}" method="post">
                        {{ csrf_field() }}
                        <div class="right-b-t">
                            登录
                        </div>
                        <div class="login-input">
                            <div class="login-username clearfix" style="margin-top: 0px;">
                                <span class="user-input-bg"></span>
                                <input type="text" name="user" placeholder="请输入账号">
                            </div>
                            <div class="login-password clearfix">
                                <span class="user-input-bg user-input-bg1"></span>
                                <input type="password" name="password" placeholder="请输入密码">
                            </div>
                            <div class="login-yzm clearfix" style="margin-top:20px;">
                                <input type="tex" name="captcha" style="width: 100px;height:36px;margin-left: 20px;float: left;" placeholder="请输入验证码">
                                <img src="{{ route('captcha.generate', ['custom']) }}"
                                     style="margin-left: 20px; cursor: pointer;" title="点击刷新验证码"
                                     onclick="this.src='{{ route('captcha.generate', ['custom']) }}?v=' + Math.random() * 10">
                            </div>
                        </div>
                        <div class="forget-pass">
                            <a href="{{route('forgot-password')}}" style="margin-left: 20px;line-height: 40px;">忘记密码?</a>
                        </div>
                        <div class="login-btn mb30">
                            <button type="submit" class="w300x46 btn btn-red">登录</button>
                        </div>
                    </form>

                </div>
            </div>
        </div>
    </div>
    <!-- foot_nav -->
    <div id="bottom_main"></div>

    <script type="text/javascript">
        $(function(){

            commTemplUtil.initPage();
        })
    </script>
@stop